# -*- coding: utf-8 -*-
# @author: wch
# @file: cut_area.py
# @time: 2023/2/1 11:45

"""
    本模块实现的是通过输入图片中两个点位，来剪切图像中的区域

"""

import numpy_learn as np
import cv2

cv2.namedWindow("cut_img_area", cv2.WINDOW_NORMAL)
path = r"E:\01-work_haierxi\select_target\video2img\1.jpg"
img = cv2.imread(path)

cut_img = img[0:640, 0:360]  # 通过切片直接获得想要展示的区域
cv2.imshow("cut_img_area", cut_img)
cv2.waitKey(0)
cv2.destroyAllWindows()
